<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <link href="./node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
  <script src="./node_modules/bootstrap/dist/js/bootstrap.js"></script>
</head>
<body >
<div class="login-form col-md-4" >
  <div class="g-form">
    <div class="g-form-line">
      <div class="form-group">
        <label style="color:red">用户名:</label>
        <input type="text" name="username" class="form-control" placeholder="请输入用户名">
      </div>
    </div>
    <div class="g-form-line">
      <div class="form-group">
        <label>密码:</label>
        <input type="password" name="password" class="form-control" placeholder="请输入密码">
      </div>
    </div>
    <div class="g-form-line">
      <div class="form-group">
        <button type="button" class="btn btn-primary" onclick="login()">登录</button>
        <button type="reset" class="btn btn-danger">重置</button>
      </div>
    </div>
  </div>
</div>
</body>
<script>
  function login(){
    alert("hello");
  }

</script>

</html>
